;
(function () {
    System.register(['./index-legacy-BBSVeb5I.js'], function (exports, module) {
        'use strict';

        var dayjs;
        return {
            setters: [function (module) {
                dayjs = module.N;
            }],
            execute: function execute() {
                exports({
                    f: formatToDateTime,
                    g: getHashColorFromString
                });

                function getHashHueFromString(name) {
                    var hash = 111;
                    for (var i = 0; i < name.length; i++) hash = (hash << 5) + hash + name.charCodeAt(i);
                    hash = Math.abs(hash);
                    var goldenRatio = 0.618033988749895;
                    var hue = hash * goldenRatio * goldenRatio % 1 * 360;
                    return Math.floor(hue);
                }

                function getHashColorFromString(name) {
                    var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
                    var h = getHashHueFromString(name);
                    return getHsla(h, opacity);
                }

                function getHsla(hue) {
                    var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
                    var saturation = 65;
                    var lightness = 45;
                    return "hsla(".concat(hue, ", ").concat(saturation, "%, ").concat(lightness, "%, ").concat(opacity, ")");
                }

                var DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";

                function formatToDateTime() {
                    var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
                    var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DATE_TIME_FORMAT;
                    return dayjs(date).format(format);
                }
            }
        };
    });
})();
